package test30;

import java.util.Scanner;

public class Task2 {

	static void judge() {
		String sub;
		Scanner sc  = new Scanner(System.in);
		sub = sc.next();
		Boolean flag = true;
		char[] ans = sub.toCharArray();
		for(int i = 0,j = sub.length()-1;i<j;i++,j--) {
			if(ans[i]!=ans[j]) {
				flag = false ;
				break;
			}
		}
		if(flag )System.out.println("Yes");
		else System.out.println("No");
	}
	public static void main(String[] args) {
		judge();
	}
}
